<?php
/**
 * 环信注册用户
 */

namespace App\Services\Easemob;

use Easemob\Auth;
use Easemob\User;
use Easemob\UserMetadata;

use App\Models\Member\Member;

use App\Services\Com\UtilService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;

class Base
{
    public static $_instance = null;

    public static function getInstance()
    {
        if (empty(self::$_instance)) {
            self::$_instance = $auth = new Auth(env('IM_APP_KEY'), env('IM_CLIENT_ID'), env('IM_CLIENT_SECRET'));
        }
        return clone self::$_instance;
    }
}